<extend name="Public:base" />
<block name="body">
<load href="__PUBLIC__/css/page.css"/> 
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 main-body">
		<ul>
		
			<li>
				<a href="__MODULE__/MemberPublic/allplug" class="btn btn-primary">
					所有插件
				</a>
			</li>
			<li>
				<a href="__MODULE__/MemberPublic/installedplug" class="btn btn-primary">
					已安装插件
				</a>
			</li>
			<li class="m_p" style="float:left;"><span class="glyphicon glyphicon-th"></span>所有插件</li>
		</ul>
	</div>
	<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid public_list allplug_font_size">
		<div class="text-danger bg-info col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid manu">
		&nbsp;{$page}
		</div>
		<div class="table-responsive">
			<form>
				<table class="table-bordered table table-hover">
					<tr class="bg-danger">
						<td class="col-xs-2">名称</td>
						<td class="col-xs-8">描述</td>
						<td class="col-xs-1">状态</td>
						<td class="col-xs-1">操作</td>
					</tr>
					<volist id="plug_list" name="plug_list">
					<tr>
						<td align="center"><a href="http://{$plug_list.plug_admin}?pub_id={$_SESSION['now_pub']['public_id']}">{$plug_list.plug_name}</a></td>
						<td>{$plug_list.intraduce}</td>
						<td>
						<if condition="$plug_list.isunlock eq 1">
						<font color="#783243">已开启</font>
						<else />
						<font color="red">未开启</font>
						</if>
						</td>
						<td align="center">
						<if condition="$plug_list.isunlock eq 1">
						<button class="btn btn-small" onclick="isunlock({$plug_list.id},0,{$plug_list.p_id},{$plug_list.pub_id})">
					                禁用
				        </button>
						<else />
						<button class="btn btn-primary btn-small" onclick="isunlock({$plug_list.id},1,{$plug_list.p_id},{$plug_list.pub_id})">
					                开启
				        </button>
						</if>
						</td>
					</tr>
					</volist>
				</table>
			</form>
		</div>
		<div class="bg-info col-xs-12 col-sm-12 col-md-12 col-lg-12 container-fluid public_list manu">
		&nbsp;{$page}
		</div>
	</div>
</block>